﻿#region 命名空间

using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;
using Sharp.Domain.CMSBoundedContext.VIUModule.Aggregates;
using Sharp.Domain.Model;

#endregion

namespace Sharp.Domain.CMSBoundedContext.ModelConfigurations
{
    /// <summary>
    ///     Represents the entity type configuration for the <see cref="Tag" /> entity.
    /// </summary>
    public partial class TagTypeConfiguration : EntityTypeConfiguration<Tag>
    {
        #region 构造函数

        /// <summary>
        ///     Initializes a new instance of <c>CustomerTypeConfiguration</c> class.
        /// </summary>
        public TagTypeConfiguration()
        {
            HasKey(c => c.Id);

            Property(t => t.Id)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity)
                .IsRequired();

         
        }

        #endregion
    }
}